feat: implement Phase 8 — headless tests, CI, and docs update - #41
Merged
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: netkeep80#7
- Add tests/test_demo_headless.cpp: smoke-test running all 7 scenarios for 2 s, verifying validate() and thread cleanup within 5 s - Add tests/test_mem_map_view.cpp: unit tests for MemMapView::update_snapshot() covering null-safety, post-alloc snapshot, and highlighted_block stability - Add tests/test_scenario_manager.cpp: lifecycle tests for ScenarioManager (count, stop_all deadline, start/stop idempotency, destructor cleanup) - Refactor demo/CMakeLists.txt: extract pmm_demo_lib static library shared by pmm_demo and the three new headless test executables; tests registered with CTest under PMM_BUILD_DEMO=ON - Mark all Phases 2–8 checklist items as complete in plan.md - Add docs/phase-8-tests.md: Phase 8 completion report - Update README.md: document headless demo tests and new test files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
konard
marked this pull request as ready for review
March 1, 2026 10:35
This reverts commit 3b0f395.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 8 of the PMM visual demo development plan (tests, CI, documentation).
Fixes #7
What was done
New test files (Phase 8.1):
tests/test_demo_headless.cpp— Smoke-test running all 7 scenarios for 2 s without a graphical window; verifiesvalidate() == trueand thread cleanup within 5 stests/test_mem_map_view.cpp— Unit tests forMemMapView::update_snapshot(): null-safety, post-alloc/free snapshot rebuild,highlighted_blockstabilitytests/test_scenario_manager.cpp— Lifecycle tests forScenarioManager: count == 7,stop_alldeadline, start/stop idempotency, destructor cleanupBuild system refactor (
demo/CMakeLists.txt):pmm_demo_libstatic library from demo sources (all files exceptmain.cpp)pmm_demoexecutable links againstpmm_demo_libpmm_demo_libadd_test()— run viactestwhenPMM_BUILD_DEMO=ONDocumentation:
docs/phase-8-tests.md— Phase 8 completion reportplan.md— Marked all Phase 2–8 checklist items as ✅README.md— Added headless tests section withctestusage instructions and updated repository structureHow to test
Checklist
clang-formatpasses on all new filescppcheckpasses on all new filesplan.mdupdated — all phases marked completeREADME.mdupdateddocs/phase-8-tests.mdcreated🤖 Generated with Claude Code